import Vue from 'vue'
import App from './App.vue'

//UI框架组件
import MintUI from "mint-ui";
import "mint-ui/lib/style.css";
Vue.use(MintUI);

//引进element  table
import elementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(elementUI);

//引入router
import router from './router/router.js';
//网络请求
// import axios from "axios";


//axios封装
import './utils/http';
import api from './utils/api';
// Vue.use(axios);
Vue.use(api);

//引入vuex
import store from './store/store.js';

// 挂载在1Vue对象上

Vue.config.productionTip = false
import "./assets/css/reset.css";
import "./assets/js/rem.js";
new Vue({
  router:router,
  store:store,
  render: h => h(App)
}).$mount('#app')

/*
let json = response && response.data
   if(json.code == 1){
     return json
   }
   throw new Error(json.msg || '系统繁忙')
*/ 